<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>购物车</title>
    <%@ include file="/common/include-core.jsp" %>
    <%@ include file="/common/include-wap.jsp" %>
    <link rel="stylesheet" type="text/css" href="/static/css/wap/order/shoppingCart.css"/>
    <script src="/static/js/wap/order/shoppingCart.js"></script>
</head>
<body>
<div style="overflow-x: hidden;width: 100%">
    <div class="classify-name">
        <input type="hidden" value="${user.tid}" id="userId" name="userId">
        <c:forEach items="${shoppingCartList}" var="info">

            <div class="videoRecommend_2_list">
                <span class="videoRecommend_img_0" data-shoppingCartId="${info.tid}" data-isCheck=""
                      data-classId="${info.productEntity.productEntityId}"
                      data-shoppingCartId="${info.tid}"
                      data-price="${info.productEntity.realPrice/100}"><img
                        src="/static/images/icon/no.png"></span>
                <span class="videoRecommend_img">
                <c:forEach var="productEntityPicList" items="${info.productEntity.resourceRelationList}">
                        <c:if test="${productEntityPicList.resourceRelationType==4}">
                            <img src="${picPath}/${productEntityPicList.resourceUrl}" alt="图片" width="100" height="100">
                        </c:if>
                    </c:forEach>
                </span>
                <span class="videoRecommend_text_list">
                <div class="videoRecommend_text_1_list"><span>${info.productEntity.productEntityName}</span></div>
                <div class="videoRecommend_text_2_list"><span class="shoppingSummary">${info.productEntity.productEntityIntroduction}</span>
                     </div>
                <div class="videoRecommend_text_4_list">
                    <span class="videoRecommend_text_4_list_1">￥<fmt:formatNumber
                            value="${info.productEntity.realPrice/100}" type="currency"
                            pattern="#.00"/> </span>
                    <span class="cartNum">
                        <span><img src="/static/images/icon/shoppingCart_02.png"
                                   onclick="subAoumt(${info.tid},$(this));"></span>
                        <span id="cartNum">${info.amount}</span>
                        <span><img src="/static/images/icon/shoppingCart_04.png"
                                   onclick="addAoumt(${info.tid},$(this));"></span>
                    </span>
                </div>
            </span>
            </div>
        </c:forEach>
    </div>

    <div class="course_buyOrCar">
        <span class="course_buyOrCar_1" id="deleteShoppingCart">删除</span>
        <span class="course_buyOrCar_2" id="toPay">去支付</span>
    </div>
</div>

</body>
<html>